package com.example.mongodb.springbootmongodb.dao;

import com.example.mongodb.springbootmongodb.po.Teacher;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author: yushizhong
 * @date: 2022-06-30 15:29
 * @version: 1.0
 **/
public interface TeacherDao extends MongoRepository<Teacher, Long> {

    Teacher findTeachersByName(String name);

    List<Teacher> findTeachersByAgeLessThan(Integer age);




}
